package com.fly.glide;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.id_single_img_btn).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, SingleImgActivity.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.id_refresh_btn).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
//        showAppInfo();
    }

    private void showAppInfo() {
        Log.e("tag", AppUtils.getPackageName());
        Log.e("tag", AppUtils.getVersionCode());
        Log.e("tag", AppUtils.getVersionName());
       /* Log.e("tag", AppUtils.getPhoneDeviceId());
        Log.e("tag", AppUtils.getPhoneNumber());*/
    }

}
